import request from '@/utils/request'

export function listStaff(query) {
  return request({ url: '/jiaxiao/staff/list', method: 'get', params: query })
}

export function getStaff(staffId) {
  return request({ url: '/jiaxiao/staff/' + staffId, method: 'get' })
}

export function addStaff(data) {
  return request({ url: '/jiaxiao/staff', method: 'post', data })
}

export function updateStaff(data) {
  return request({ url: '/jiaxiao/staff', method: 'put', data })
}

export function delStaff(staffId) {
  return request({ url: '/jiaxiao/staff/' + staffId, method: 'delete' })
}

export function exportStaff(query) {
  return request({ url: '/jiaxiao/staff/export', method: 'post', params: query, responseType: 'blob' })
}

export function importTemplate() {
  return request({ url: '/jiaxiao/staff/importTemplate', method: 'post', responseType: 'blob' })
}


